package com.qf.redpack.business.web.application;

import org.apache.kafka.clients.admin.NewTopic;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 红包服务的启动类
 */
@SpringBootApplication
@MapperScan("com.qf.**.dao")
public class RedpackApplication {

    public static void main(String[] args) {
        SpringApplication.run(RedpackApplication.class, args);
    }

    @Bean
    public NewTopic newTopic(){
        return new NewTopic("red-topic", 3, (short)2);
    }
}
